﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="JokeListPublish.aspx.cs" Inherits="nst_joke_JokeListPublish" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正式列表</title>
    <style type="text/css">
    td{border:solid 1px #ccc; padding:3px 5px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        类型：
        <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlType_SelectedIndexChanged">
        </asp:DropDownList>
        
        <table cellspacing="0">
            <tr style="background-color:#eee">
                <td>Id</td>
                <td>标题</td>
                <td>分类分页Id</td>
                <td>分数</td>
                <td>点击</td>
                <td>分享</td>         
                <td>发布日期</td>
                <td>作者</td>
            </tr>
        <asp:Repeater ID="rptList" runat="server">
            <ItemTemplate>
            <tr>
                <td><%#Eval("id") %></td>
                <td><a target="_blank" href="JokeEditPublish.aspx?id=<%#Eval("typePageId") %>"><%#Eval("title") %></a></td>
                <td><%#Eval("typePageId") %></td>                
                <td><%#Eval("score") %></td>
                <td><%#Eval("clickCount") %></td>
                <td><%#Eval("likeCount") %></td>
                <td><%#Eval("createTime") %></td>
                <td><%#Eval("author") %></td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
        </table>
        
        <div>
            总记录数：<asp:Label ID="lblTotalCount" runat="server"></asp:Label>
            总页数：<asp:Label ID="lblTotalPage" runat="server"></asp:Label>
            当前页：<asp:TextBox ID="txtCurrentPage" runat="server" Text="1" Width="60px"></asp:TextBox>
            <asp:Button ID="ButtonGotoPage" runat="server" Text="转到此页" onclick="ButtonGotoPage_Click" />
        </div>
    </div>
    </form>
</body>
</html>
